using KPIS.GERP.Models.Class;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmMasContactBank")]
    public class MasContactBank
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "ConBankId", ResourceType = typeof(Resources.MasContactBankResource))]
        public int ConBankId { get; set; }

        //[DataMember, Display(Name = "ConBankCode", ResourceType = typeof(Resources.MasContactBankResource))]
        //public string Code { get; set; }

        //[DataMember, Display(Name = "ConBankName", ResourceType = typeof(Resources.MasContactBankResource))]
        //public string Name { get; set; }

        [CustomRequired]
        [ForeignKey("MasContact")]
		[DataMember, Display(Name = "ConId", ResourceType = typeof(Resources.MasContactBankResource))]
        public int ConId { get; set; }

        [CustomRequired]
        [ForeignKey("MasBankBranch")]
		[DataMember, Display(Name = "ConBankBranch", ResourceType = typeof(Resources.MasContactBankResource))]
        public int BranchId { get; set; }

        [CustomRequired]
		[DataMember, Display(Name = "ConAccountCode", ResourceType = typeof(Resources.MasContactBankResource))]
        public string AccountCode { get; set; }

        [CustomRequired]
		[DataMember, Display(Name = "ConAccountName", ResourceType = typeof(Resources.MasContactBankResource))]
        public string AccountName { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MasContactBankResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MasContactBankResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MasContactBankResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MasContactBankResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MasContactBankResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }
    

		[DataMember]
        public virtual MasContact MasContact { get; set; }

        [DataMember]
        public virtual FIM.MasBankBranch MasBankBranch { get; set; }
    }
}